package com.sap.tpcd.policybuilder.policymodel ;


/**
 * @author I068988
 * @version 1.0
 * @created 30-sept.-2011 14:12:32
 */
public abstract class PolicyElement {

	public SystemElements m_SystemElements;

	public PolicyElement(){

	}

	public boolean isMapped(){
		return false;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((m_SystemElements == null) ? 0 : m_SystemElements.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof PolicyElement)) {
			return false;
		}
		PolicyElement other = (PolicyElement) obj;
		if (m_SystemElements == null) {
			if (other.m_SystemElements != null) {
				return false;
			}
		} else if (!m_SystemElements.equals(other.m_SystemElements)) {
			return false;
		}
		return true;
	}

	
}